package com.crm.dao;
//开关表的dao层

import java.util.List;
import java.util.Map;

import com.crm.entity.OpenClose;

public interface OpenCloseDao {
	/**
	 * 查询开关
	 * @return
	 */
	public List<Map<String, Object>> getAll();
	/**
	 * 根据id去修改isopens
	 * @param openClose
	 * @return
	 */
	public Integer update(OpenClose openClose);
	/**
	 * 查询自动分配是否打开 1; //打开 允许
	 * @param openClose
	 * @return
	 */
	public OpenClose getAllIsOpen(OpenClose openClose);
}
